
import java.awt.Rectangle;

public class Rect{
	public static final int RIGHT=0,LEFT=1,UP=2,DOWN=3;
    private int speed, direction;
    private Rectangle rect;
     
    public Rect(int xr, int yr, int width, int height){
      this(xr,yr,width,height,-1,0);
    }    
    public Rect(int x, int y, int width, int height, int direction, int speed){
    	rect = new Rectangle(x,y,width,height);
        this.speed = speed;
        this.direction = direction;
    }
    
    public int getDir(){
    	return direction;
    }
    
    public int getSpeed(){
    	return speed;
    }
    
    public Rectangle getBounds(){
        return rect;
    }
	
}